bbbbggggnnnncccclllloooosssseeeeddddlllliiiinnnneeee marks the start of a group of vertex routines that you want
interpreted as points on a closed line. Use eeeennnnddddcccclllloooosssseeeeddddlllliiiinnnneeee to mark the
end of the vertex routines that are part of the closed line.
A closed line draws a line segment from one vertex on the list to the
next vertex on the list. When the system reaches the end of the vertex
list, it draws a line that connects the last vertex to the first vertex.
All segments use the current linestyle, which is reset prior to the first
segment and continues through subsequent segments. To specify a vertex,
use the vvvv routine.
Between bbbbggggnnnncccclllloooosssseeeeddddlllliiiinnnneeee and eeeennnnddddcccclllloooosssseeeeddddlllliiiinnnneeee, you can issue only the following
RRRRGGGGBBBBccccoooolllloooorrrr, tttt, and vvvv. Within a closed line, you should use llllmmmmddddeeeeffff and
llllmmmmbbbbiiiinnnndddd only to respecify materials and their properties. If the color
changes between a pair of vertices, the color of the line segment will be
constant if the current shading model is FLAT and interpolated if the
current shading model is GOURAUD. In color map mode, the colors vary
through the color map; to get reasonable results, the color map should
contain a ramp.
There is no limit to the number of vertices that can be specified between
bbbbggggnnnncccclllloooosssseeeeddddlllliiiinnnneeee and eeeennnnddddcccclllloooosssseeeeddddlllliiiinnnneeee. After eeeennnnddddcccclllloooosssseeeeddddlllliiiinnnneeee, the system draws a
line from the final vertex back to the initial vertex, and the current
graphics position is left undefined.
By default, line vertices are forced to the nearest pixel center prior to
scan conversion. Line accuracy is improved when this coercion is
defeated with the ssssuuuubbbbppppiiiixxxxeeeellll command. Subpixel vertex positioning is
especially important when lines are scan-converted with antialiasing
enabled (see lllliiiinnnneeeessssmmmmooooooootttthhhh).
bbbbggggnnnncccclllloooosssseeeeddddlllliiiinnnneeee/eeeennnnddddcccclllloooosssseeeeddddlllliiiinnnneeee are the same as bbbbggggnnnnlllliiiinnnneeee/eeeennnnddddlllliiiinnnneeee, except they
connect the last vertex to the first.
EEEEXXXXAAAAMMMMPPPPLLLLEEEE
The code fragment below draws the outline of a triangle. Lines use the
current linestyle, which is reset prior to the first vertex and continues